<?php

require_once 'lib/generic_data_pager.class.php';
require_once 'Structures/DataGrid.php';

$dsn        =   array(
                        'phptype'  => 'mysql',
                        'username' => 'root',
                        'password' => '',       
                        'hostspec' => 'localhost',
                        'database' => 'gracenote'
                     );

$options    =   array(  'dsn'   =>  $dsn,
                        'table' =>  'content_container',
                        'primary_key'   =>  ''              
                        );

$querytool  =   new generic_data_pager($options);

$datagrid =& new Structures_DataGrid(10);
//$datagrid->bind('SELECT * FROM content_container');
$test = $datagrid->bindDataSource($querytool);
$datagrid->fill($querytool->pager);


var_dump($datagrid);

?>
